<ion-view view-title={{moduleTitle}}>
    <ion-nav-buttons side="left">
        <a class="button button-icon ion-arrow-left-c" href="#/tabs/main"></a>
    </ion-nav-buttons>
    <ion-content class="padding has-tabs-top">
        <form name="detailForm" novalidate="" ng-submit="submitForm(detailForm)">
            <div class="list">
                <label class="item item-input">
                    <span class="input-label">验证码：</span>
                    <input type="text" name="code" ng-model="detail.code"
                           ng-maxlength="50"
                           required
                           ng-model-options="{ updateOn: 'default blur', debounce: { default: 500, blur: 0 } }">
                </label>
                <!-- Error Container for Password -->
                <div class="validation-error" ng-class="{'is-dirty':form.password.$dirty}"
                     ng-messages="detailForm.code.$error" role="alert">
                    <div ng-messages-include="templates/system-templates/detail-maxlength-50.html"></div>
                </div>
            </div>
            <button class="button button-full button-positive" ng-disabled="detailForm.$invalid" type="submit">
                验证
            </button>
        </form>
        <ion-list class="list" >
            <ion-item ng-if="!result">
                验证码不存在
            </ion-item>
            <ion-item ng-repeat="item in GenuineVerificationList">

                <h2>{{item.variety_name + item.proportion + item.SM}}</h2>
                <p>验证码：{{item.code}}</p>

                <p>验证次数：{{item.count}}</p>

                <p>验证时间：{{item.timestamp}}</p>
            </ion-item>
        </ion-list>
    </ion-content>


</ion-view>